package org.example;

import com.alibaba.nacos.spring.context.annotation.config.NacosPropertySource;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @author liu jun
 */

@SpringBootApplication
@MapperScan("org.example.dao")
@NacosPropertySource(dataId = "tencent_001",groupId ="TENCENT_CONFIG", autoRefreshed = true)
public class OrangeSpringBootApplication {
    public static void main(String[] args) {
        SpringApplication.run(OrangeSpringBootApplication.class, args);
    }
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
